SRCS = \
	InetAddress.cc TcpAddress.cc UdpAddress.cc \
	Tcp4Address.cc Tcp6Address.cc Udp4Address.cc Udp6Address.cc \
	EtherAddress.cc \
	Socket.cc InetSocket.cc TcpSocket.cc UdpSocket.cc \
	PacketSocket.cc NetLink.cc NetLinkRoute.cc \
	TcpServer.cc ProtoBase.cc SttpBase.cc Sttp.cc Lttp.cc
OBJS = $(SRCS:.cc=.o)
OUT = libxppnet.a

CXX = @CXX@
RANLIB = @RANLIB@
CFLAGS = @CFLAGS@ -I@abs_top_builddir@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@

all: $(OBJS)
	ar cr $(OUT) $(OBJS)
	ranlib $(OUT)

clean:
	rm -rf $(OBJS) $(OUT) *.o

.SUFFIXES: .cc .o
.cc.o:
	$(CXX) $(CFLAGS) -c $<
